package xin.marcher.module.replenished.converter;

import org.mapstruct.Mapper;
import xin.marcher.module.replenished.domain.bo.SkuInfoBO;
import xin.marcher.module.replenished.domain.entity.ProductDetailDO;
import xin.marcher.module.replenished.domain.request.RecoverableRequest;
import xin.marcher.module.seller.domain.request.SellerInfoRequest;

import java.util.List;

/**
 * 商品可采 相关对象克隆
 *
 *
 */
@Mapper(componentModel = "spring")
public interface RecoverableConverter {
    /**
     * 对象克隆
     *
     * @param request
     * @return
     */
    SellerInfoRequest converterRequest(RecoverableRequest request);

    /**
     * 对象克隆
     *
     * @param productDetailDO
     * @return
     */
    SkuInfoBO converterBO(ProductDetailDO productDetailDO);

    /**
     * 集合对象克隆
     *
     * @param list
     * @return
     */
    List<ProductDetailDO> converterProductList(List<ProductDetailDO> list);


}
